package main

import (
    "git.oschina.net/janpoem/GoTasks"
    "time"
    "git.oschina.net/janpoem/go-logger"
)

func main() {

    defer GoTasks.TaskServiceStart()
    GoTasks.On("get:Test", func(resp string) {
        time.Sleep(10 * time.Second)
        logger.Log("get complete")
    })
}
